Repository navigation
Conversation
What changed: - bin/acme.sh now has OpenLiteSpeed request and renew certificates instead of running acme.sh in the container's root account. - A domain is moved from the docker template to a new dockerAcme template whose vhssl block enables ACME; --revoke, --remove and --uninstall move it back. - docker-compose.yml mounts ./lsws/acme at /usr/local/lsws/acme. - bin/container/certhookctl.sh is removed and the README is updated. Why: - OpenLiteSpeed ACME adds www.<domain> to a certificate only when it is reachable, so a domain without a working www record still gets a certificate, and www is added at a later renewal. - The old renewals and the restart hook relied on cron, which the container never starts, so certificates were never renewed. How: - install_acme.sh and uninstall_acme.sh from the image run in throwaway containers that share the conf and acme volumes: the installer skips an existing acme directory (always a mount point here), and acme.sh --uninstall would also remove root's acme.sh in the litespeed container. - After the restart, the script follows the [ACME] lines in error.log until the certificate is replaced or the request fails, then checks that port 443 serves the new certificate. - Manual renew and revoke run the installed acme.sh as lsadm with the same environment OpenLiteSpeed uses. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed:
Why:
How: